package com.volunteer.controller;

import com.volunteer.util.I18nResponseResult;
import com.volunteer.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author willow
 * @date 2020年03月25日
 * @apiNote
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping("/testen")
    public Result testen(HttpServletRequest request) {
        return I18nResponseResult.genSuccessResult("en_us");
    }
    @GetMapping("/testch")
    public Result testch(HttpServletRequest request) {
        return I18nResponseResult.genSuccessResult("zh_cn");
    }
}
